﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AirLinq.Providers.Sql {
	public class SqlExists : SqlPredicate {
		private readonly SqlQueryExpressionBase _subQuery;
		public SqlExists(SqlQueryExpressionBase subQuery) {
			_subQuery = subQuery;
		}
		public SqlQueryExpressionBase SubQuery{
			get{
				return _subQuery;
			}
		}
		public override bool IsNotInjectionable {
			get {
				return false;
			}
		}
		public override SqlNodeType NodeType{
			get {
				return SqlNodeType.Exists;
			}
		}
	}
}
